<template>
  <div>
    <button @click="getStudts">获取学生信息</button>
  </div>
</template>

<script>
import axios from "axios"

export default {
  name: "App",
  data() {
    return {

    };
  },
  methods:{
    getStudts(){
      axios.get("http://localhost:8080/zouyangguang").then(
          response=>{
            console.log("请求成功了",response.data)
          },
          err=>{
            console.log("请求失败了",err.message)
          }
      )
    }
  }


};


//96
</script>

<style>

</style>
